home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 December
/
PCWorld_2006-12_cd.bin
/
domacnost a kancelar
/
rainlendar
/
Rainlendar-Lite-2.0.exe
/
scripts
/
windows.lua
< prev
Wrap
Text File
|
2006-08-27
|
2KB
|
83 lines
--
-- DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN WHEN YOU UPGRADE RAINLENDAR!
--
--
-- Shows the given window if it is hidden.
--
-- Parameters:
-- windowName - Name of the window to be shown.
-- Return:
-- None
--
function Global_ShowWindow(windowName)
Rainlendar_ShowWindow(windowName)
end
--
-- Hides the given window if it is shown.
--
-- Parameters:
-- windowName - Name of the window to be hidden.
-- Return:
-- None
--
function Global_HideWindow(windowName)
Rainlendar_HideWindow(windowName)
end
--
-- Toggles the given window. If the window is visible
-- it is hidden and vice versa.
--
-- Parameters:
-- windowName - Name of the window to be toggled.
-- Return:
-- None
--
function Global_ToggleWindow(windowName)
local visible = Rainlendar_IsWindowVisible(windowName)
if visible then
Rainlendar_HideWindow(windowName)
else
Rainlendar_ShowWindow(windowName)
end
end
--
-- Opens the about dialog.
--
-- Parameters:
-- None
-- Return:
-- None
--
function Global_ShowAboutDialog()
Rainlendar_OpenDialog("About")
end
--
-- Opens the todo dialog.
--
-- Parameters:
-- None
-- Return:
-- None
--
function Global_ShowTodoDialog()
Rainlendar_OpenDialog("Todo")
end
--
-- Opens the event dialog.
--
-- Parameters:
-- None
-- Return:
-- None
--
function Global_ShowEventDialog()
Rainlendar_OpenDialog("Event")
end